(function () {
    'use strict';

    // Usage:
    //
    // Creates:
    //

    angular
        .module('yky.components')
        .component('exam', {
            templateUrl: './examDetail.html',
            controller: ExamController,
            controllerAs: 'vm',
            bindings: {
                Binding: '='
            }
        });

    ExamController.inject = ['$http'];
    function ExamController($http) {
        var vm = this;
        vm.filter = {
            subject: undefined,
            level: undefined
        }
        
        $http
            .get('/data/score.json')
            .then(res => {
                vm.papers = res.data;
            })
        ////////////////

        vm.onInit = function () {};
        vm.onChanges = function (changesObj) {};
        vm.onDestory = function () {};
    }
})();